package com.exam.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.exam.pojo.Score;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface ScoreMapper extends BaseMapper<Score> {
    //添加分数
@Insert("insert into score (scoreId,examCode,studentId,subject,ptScore,etScore,score,answerDate) " +
        "value (null,#{examCode},#{studentId},#{subject},#{ptScore},#{etScore},#{score},#{answerDate})")
    int addScores(Score score);
}
